package com.wywah.common.utils;

import com.wywah.common.exception.BaseException;
import com.wywah.common.http.HttpStatus;

public class ErrorUtils {

    public static void throwBaseException(String msg){
        throw new BaseException(HttpStatus.FAIL.code, msg);
    }

    public static void isBlank(CharSequence str,String msg){
        if(StringUtils.isBlank(str)){
            throwBaseException(msg);
        }
    }





}
